Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add workflow for uploading wheels to PyPI #44

Merged
merged 6 commits into from
Oct 19, 2024

Conversation

j-s-ashley
Copy link
Member

@j-s-ashley j-s-ashley commented Jul 7, 2024

Resolves #31

Addresses final part of #31:

* Revise publishing workflow to build and test sdist and wheels using
  hynek/build-and-inspect-python-package and then to publish them to TestPyPI
  or PyPI using pypa/gh-action-pypi-publish using Trusted Publishers.
   - c.f. https://docs.pypi.org/trusted-publishers/
* The sdist and wheel building runs on pushes to master, pull requests,
  on a weekly CRON schedule, workflow dispatch, and on releases.
* Publishing to TestPyPI occurs via workflow dispatch if the boolean input
  'publish_testpypi' is manually set to 'true'.
* Publishing to PyPI occurs on releases through publishing a GitHub release.

Co-authored-by: Matthew Feickert <[email protected]>

@matthewfeickert
Copy link
Contributor

@j-s-ashley once j-s-ashley#2 is merged, then this PR will get updated, and then I think that a new release of EnergyFlow can be published.

Just to confirm, you were able to setup trusted publishers for both EnergyFlow and Wasserstein, corect?

j-s-ashley and others added 6 commits October 18, 2024 23:17
* Use the example given in
  https://learn.scientific-python.org/development/guides/gha-pure/ as an outline and
  use the hash level of actions/attest-build-provenance for additional security.
  - Add print-hash and attestations options to pypa/gh-action-pypi-publish.
* Rename workflow to 'publish'.
* Remove unused upload workflow.
@matthewfeickert matthewfeickert merged commit 2946246 into thaler-lab:master Oct 19, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update EnergyFlow release procedure
2 participants